//
//  ViewController.swift
//  BeautyGallery
//
//  Created by lewis on 15/12/21.
//  Copyright © 2015年 lewis. All rights reserved.
//

import UIKit
import Social

class KoreanViewController: UIViewController {
    
    @IBOutlet weak var beautyImage: UIImageView!
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    @IBAction func facebookTapped(sender: AnyObject) {
        let controller: SLComposeViewController = SLComposeViewController(forServiceType:SLServiceTypeFacebook)
        controller.setInitialText("一起来玩女神画廊app吧，就在Git上，https://xxx.com")
        controller.addImage(beautyImage.image);
        self.presentViewController(controller, animated: true, completion: nil)
 }
    
    @IBAction func twitterTapped(sender: AnyObject) {
        let controller: SLComposeViewController = SLComposeViewController(forServiceType:SLServiceTypeTwitter)
        controller.setInitialText("一起来玩女神画廊app吧，就在Git上，https://xxx.com")
        controller.addImage(beautyImage.image);
        self.presentViewController(controller, animated: true, completion: nil)
 }
    @IBAction func weiboTapped(sender: AnyObject) {
        let controller: SLComposeViewController = SLComposeViewController(forServiceType:SLServiceTypeSinaWeibo)
        controller.setInitialText("一起来玩女神画廊app吧，就在Git上，https://xxx.com")
        controller.addImage(beautyImage.image);
        self.presentViewController(controller, animated: true, completion: nil)
   }
}

